package com.bs.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Long userId;
	private UserPrivilege userPrivilege;
	private String userName;
	private String loginName;
	private String userPassword;
	private Date userCreateTime;
	private Set medicalRecords = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(UserPrivilege userPrivilege, String userName,
			String loginName, String userPassword, Date userCreateTime,
			Set medicalRecords) {
		this.userPrivilege = userPrivilege;
		this.userName = userName;
		this.loginName = loginName;
		this.userPassword = userPassword;
		this.userCreateTime = userCreateTime;
		this.medicalRecords = medicalRecords;
	}

	// Property accessors

	

	public UserPrivilege getUserPrivilege() {
		return this.userPrivilege;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public void setUserPrivilege(UserPrivilege userPrivilege) {
		this.userPrivilege = userPrivilege;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Date getUserCreateTime() {
		return this.userCreateTime;
	}

	public void setUserCreateTime(Date userCreateTime) {
		this.userCreateTime = userCreateTime;
	}

	public Set getMedicalRecords() {
		return this.medicalRecords;
	}

	public void setMedicalRecords(Set medicalRecords) {
		this.medicalRecords = medicalRecords;
	}

}